package cn.edu.nchu.controller;

import cn.edu.nchu.service.MQService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MQController {
    @Autowired
    private MQService mqService;

    @PostMapping("/MQ/send")
    public void send(@RequestBody JSONObject jsonObject){
//        mqService.sendMessage(jsonObject);
    }

//    @GetMapping("/MQ/recive")
//    public JSONObject recive(){
//        mqService.reciveMessage()
//    }
}
